package com.primeton.fbsearch.pdf;

import java.io.File;

import org.apache.lucene.document.Document;
import org.pdfbox.searchengine.lucene.LucenePDFDocument;

public class PDFBoxLucenePDFDocument {
    public static void main(String[] args) throws Exception {
    	
    	args = new String[1];
    	args[0]="D:\\OpenSource\\search_data\\EOS5.3报表培训教程.pdf";
    	
        Document doc = LucenePDFDocument.getDocument(new File(args[0]));
        String sr = doc.getField("contents").stringValue();
        
        System.out.println(sr);
    }
}
